<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>gentracoland</title>
        <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
        <!--[if IE 6]><link rel="stylesheet" href="css/style.ie6.css" type="text/css" media="screen" /><![endif]-->
        <!--[if IE 7]><link rel="stylesheet" href="css/style.ie7.css" type="text/css" media="screen" /><![endif]-->
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/script.js"></script>
        <!-- the CSS for Smooth Div Scroll -->
	<link rel="Stylesheet" type="text/css" href="css/smoothDivScroll.css" />
	
	<!-- jQuery library - I get it from Google API's -->
	
	<!-- jQuery UI widget factory -->
	<!-- You can download it as a part of jQuery UI Core
		 http://jqueryui.com/download -->
	<script src="js/jquery.ui.widget.js" type="text/javascript"></script>
	
	<!-- Smooth Div Scroll 1.1 - minified for faster loading-->
	<script src="js/jquery.smoothDivScroll-1.1-min.js" type="text/javascript"></script>

	<script type="text/javascript">
	$(window).load(function() {
		$("div#logoParade").smoothDivScroll({ autoScroll: "always", autoScrollDirection: "endlessloopright", autoScrollStep: 1, autoScrollInterval: 25 });
	});
</script>

	<!-- Styles for my specific scrolling content -->
	<style type="text/css">
		#logoParade
	{
		width: 100%;
		height: 100px;
		position: relative;
	}

	#logoParade div.scrollableArea *
	{
		float: left;
		padding-left: 10px;
	}
        div.scrollingHotSpotLeft, div.scrollingHotSpotRight
	{
		min-width: 35px;
	}
	</style>
    </head>
    <body>
        <div id="art-page-background-glare">
            <div id="art-page-background-glare-image">
                <div id="art-main">
                    <div class="art-sheet">
                        <div class="art-sheet-body">

                            <div class="art-header">
                                <div class="art-header-center">
                                    <!--<div class="art-header-jpeg"></div>		<!--banner-->
                                    <div class="art-header-jpeg">
                                        <object data="upload_images/banner.swf" type="application/x-shockwave-flash" width="994" height="150">
                                            <param name="movie" value ="upload_images/banner.swf" />
                                        </object>
                                    </div>            
                                </div>
                                <div class="art-logo">
                                    <!-- <h1 id="name-text" class="art-logo-name"><a href="#">Gentracoland</a></h1>
                                    <h2 id="slogan-text" class="art-logo-text">Gentracoland</h2> -->
                                </div>
                            </div>

                            <div class="art-nav"><!--thanh dieu huong tren -->
                                <div class="l"></div>
                                <div class="r"></div>
                                <div class="art-nav-center">
                                    <!--menu-->
                                    <ul class="art-menu"><!--menu-->
                                        <li>
                                            <a href="#"><span class="l"></span><span class="r"></span><span class="t">Trang chủ</span></a>
                                        </li>
                                        <li>
                                            <a href="#"><span class="l"></span><span class="r"></span><span class="t">Giới thiệu</span></a>
                                        </li>
                                        <li>
                                            <a href="#"><span class="l"></span><span class="r"></span><span class="t">Bất động sản</span></a>
                                        </li>
                                        <li>
                                            <a href="#"><span class="l"></span><span class="r"></span><span class="t">Dịch vụ</span></a>
                                        </li>
                                        <li>
                                            <a href="#"><span class="l"></span><span class="r"></span><span class="t">Tin tức</span></a>
                                        </li>
                                        <li>
                                            <a href="#"><span class="l"></span><span class="r"></span><span class="t">Liên hệ</span></a>
                                        </li>
                                    </ul>
                                    <!--end menu-->
                                </div>
                            </div><!--end thanh dieu huong tren -->
                            <div class="art-content-layout">	<!--block chinh-->

                                <div class="art-content-layout-row">
                                    <div class="art-layout-cell art-sidebar1">	<!--siderbar left-->
                                        <!--sidebar menu-->                                	  
                                        <!-- end sidebar menu left-->
                                        <!--block left new-->
                                        <!-- block 1 -->
                                        <div class="art-block">	<!-- block tin tuc trai-->
                                            <div class="art-block-body">
                                                <div class="art-blockheader">
                                                    <div class="l"></div>
                                                    <div class="r"></div>
                                                    <h3 class="t">THÔNG TIN BẤT ĐỘNG SẢN</h3>
                                                </div>
                                                <div class="art-blockcontent">
                                                    <div class="art-blockcontent-tl"></div>
                                                    <div class="art-blockcontent-tr"></div>
                                                    <div class="art-blockcontent-bl"></div>
                                                    <div class="art-blockcontent-br"></div>
                                                    <div class="art-blockcontent-tc"></div>
                                                    <div class="art-blockcontent-bc"></div>
                                                    <div class="art-blockcontent-cl"></div>
                                                    <div class="art-blockcontent-cr"></div>
                                                    <div class="art-blockcontent-cc"></div>
                                                    <div class="art-blockcontent-body">
                                                        <div>
                                                            <?php
                                                                $kq = $knoi->queryCsdl("select b.mattp, a.tentinhtp as tentinh,count(b.matin) as sotinh 
                                                                from tinraovat as b, tinhthanhpho as a
                                                                where a.mattp = b.mattp and curdate() between ngaydang and ngayhethan
                                                                group by a.tentinhtp");
                                                                if(mysql_num_rows($kq)>0)
                                                                {
                                                            ?>
                                                            <ul>
                                                                    <?php
                                                                        while($n=mysql_fetch_array($kq))
                                                                        {
                                                                    ?>
                                                                <li>
                                                                    <a href="index.php?page=danhsachtinraovat&mattp=<?php echo $n['mattp'] ?>"><font color="#0072BC"><?php echo $n['tentinh']." (".$n['sotinh'].")"; ?></font></a>

                                                                </li>                        
                                                                    <?php
                                                                        }
                                                                    ?>
                                                            </ul>
                                                            <?php
                                                                }
                                                                else
                                                                    echo "<label>Đăng cập nhật</label>";
                                                            ?>
                                                        </div>

                                                        <div class="cleared"></div>
                                                    </div>
                                                </div>
                                                <div class="cleared"></div>
                                            </div>
                                        </div><!-- endblock tin tuc trai-->
                                        <!-- end block 1 -->
                                        <div class="art-block">	<!-- block tin tuc trai-->
                                            <div class="art-block-body">
                                                <div class="art-blockheader">
                                                    <div class="l"></div>
                                                    <div class="r"></div>
                                                    <h3 class="t">TIN MỚI</h3>
                                                </div>
                                                <div class="art-blockcontent">
                                                    <div class="art-blockcontent-tl"></div>
                                                    <div class="art-blockcontent-tr"></div>
                                                    <div class="art-blockcontent-bl"></div>
                                                    <div class="art-blockcontent-br"></div>
                                                    <div class="art-blockcontent-tc"></div>
                                                    <div class="art-blockcontent-bc"></div>
                                                    <div class="art-blockcontent-cl"></div>
                                                    <div class="art-blockcontent-cr"></div>
                                                    <div class="art-blockcontent-cc"></div>
                                                    <div class="art-blockcontent-body">
                                                        <div>
                                                            <?php
                                                                $kq=$knoi->queryCsdl("select matt, tieude from tintuc
                                                                where trangthai = 1 
                                                                order by ngaydang desc
                                                                limit 10");
                                                                if(mysql_num_rows($kq)>0)
                                                                {
                                                            ?>
                                                            <ul>
                                                                    <?php
                                                                    while($n=mysql_fetch_array($kq))
                                                                    {
                                                                    ?>
                                                                <ol>
                                                                    <a href="index.php?page=chitiettintuc&matt=<?php echo $n['matt']; ?>"><font color="#0072BC"><?php echo $n['tieude']; ?></font></a>   
                                                                </ol>   
                                                                    <?php
                                                                    }
                                                                    ?>
                                                            </ul>
                                                            <?php
                                                                }
                                                            ?>
                                                        </div>

                                                        <div class="cleared"></div>
                                                    </div>
                                                </div>
                                                <div class="cleared"></div>
                                            </div>
                                        </div>
                                        <!-- endblock left new-->          
                                        <div class="cleared"></div>
                                    </div><!--end siderbar left-->